package edzest.basic;

import java.util.Scanner;

public class J03_LeapYear {

	public static void main(String[] args) {
		Scanner sc = null;
		int year;
		final String MSG1;
		final String MSG2;
		
		sc = new Scanner(System.in);
		System.out.println("해를 입력하세요");
		year = sc.nextInt();
		MSG1 = "년은 윤년입니다";
		MSG2 = "년은 윤년이 아닙니다";
		
		if(year % 4 == 0 && year % 100 != 0){
			System.out.println(year + MSG1);
		}else{
			System.out.println(year + MSG2);
		}
		sc.close();
	}

}
